package com.younion.vo;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;

/**
 * 
 * 描述: 商家账户 实体类
 * 
 * @property label="商家账户" lower="customeraccount" upper="CUSTOMERACCOUNT" instance="customerAccount"
 *           table="t_Customer_Account"
 * 
 * Copyright (c) 2009 Excellence Network Co.,LTD All right reserved.
 * 
 */
public class CustomerAccountVO extends BaseVO implements IDomainObject, Cloneable {

	/**  */
	private static final long serialVersionUID = -1L;

	/**
	 * 账户编号
	 * 
	 * @label 账户编号
	 * @code id
	 * @type NUMERIC
	 * @javaType Integer
	 * @pk instance="Id"
	 * @required true
	 * @index 1
	 * @oddeven 0
	 */
	private Integer id;

	/**
	 * 账户余额
	 * 
	 * @label 账户余额
	 * @code money
	 * @type FLOAT
	 * @javaType Double
	 * @show
	 * @isLast
	 * @index 2
	 * @oddeven 1
	 */
	private Double money;

	/**
	 * 商家编码
	 */
	private String customerCode;

	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	/**
	 * 
	 */
	public CustomerAccountVO() {
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the money
	 */
	public Double getMoney() {
		return money;
	}

	/**
	 * @param money
	 *            the money to set
	 */
	public void setMoney(Double money) {
		this.money = money;
	}

	public CompositeID getCompositeID() {
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if (id != null) {
			_id.addKey("id", id);
		}
		return _id;
	}
}
